﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace Pharmacy.Entities
{
    ///<summary>
    /// An object representation of the 'PrescriptionDetail' table. [No description found the database]	
    ///</summary>
    /// <remarks>
    /// This file is generated once and will never be overwritten.
    /// </remarks>	
    [Serializable]
    [CLSCompliant(true)]
    public partial class PrescriptionDetail : PrescriptionDetailBase
    {
        #region Constructors

        [Description(@""), System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
        [DataObjectField(false, false, false)]
        public decimal AmountPrice
        {
            get { return UnitPrice * Quantity; }
        }

        [Description(@""), System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
        [DataObjectField(false, false, false)]
        public int LabelQuantity { get; set; }

        ///<summary>
        /// Creates a new <see cref="PrescriptionDetail"/> instance.
        ///</summary>
        /// 
        public PrescriptionDetail() : base() { }


        #endregion
    }
}
